<?php
class teachAction extends Action {
	public function index(){
		$o = M('teach');
		$teach = $o->where('display = 1')->order('posttime DESC')->select();
		$this->assign('teach', $teach);

		$this->display ();
	}
}
?>